(function() {
    function resi() {
        var html = document.querySelector('html');
        var wW = document.body.clientWidth || document.documentElement.clientWidth;

        var maxW = 1920;
        var ratio = wW / maxW;
        html.style.fontSize = 20 * ratio + 'px';
    }
    window.addEventListener('DOMContentLoaded', function() {
        var bodys = document.querySelector('body').style;
        bodys.opacity = '1';
        bodys.filter = 'alpha(opacity=100)';
        resi();
    })
    window.addEventListener('resize', resi);
})()